package niso;

public class Sale {

	private String ID,ProdName,Unit;
	private double Quantity,Price;
	private Product Prod;
	private Invoice Receipt;
	
	
	public Sale(String Saleid,String pName,String U,double Q,double amt,Invoice I){
		ID=Saleid;
		ProdName=pName;
		Unit=U;
		Quantity=Q;
		Price=amt;
		//setProd(P);
		Receipt=I;
	}
	
	
	public Sale(String Saleid,String pName,String U,double Q,double amt){
		ID=Saleid;
		ProdName=pName;
		Unit=U;
		Quantity=Q;
		Price=amt;
		//setProd(P);
	}
	public String getID(){return ID;}
	public double getQuantity(){return Quantity;}
	public double getPrice(){return Price;}
	public String getUnit(){return Unit;}
	public String getProduct(){return ProdName;}
	public Invoice getInvoice(){return Receipt;}
	public Product getProd() {return Prod;}
	
	public void setQuantity(double quan){Quantity=quan;}
	public void setUnit(String U){Unit=U;}
	public void setProduct(String P){ProdName=P;}
	public void setPrice(double cost){Price=cost;}
	public void setInvoice(Invoice R){Receipt=R;}
	public void setProd(Product prod) {Prod = prod;}
	
}
/*
 *
+getID():String
+getQuantity():double
+getPrice():double
+getProduct():Product
+getReciept():Invoice
+setQuantity(double):void
+setPrice(double):void
+setProduct()Product:void
 * */
 